/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sdc.event;

import sdc.net.server.appli.ApplicationServerFactory;


/**
 *
 * @author yokoe
 */
public class NewApplicationServerEvent extends Event{

	private final int serverNum;
	private final int useComponentNum;

	public NewApplicationServerEvent(double eventTime, int serverNum, int useComponentNum)
	{
		super(eventTime);
		this.serverNum = serverNum;
		this.useComponentNum = useComponentNum;
	}

	@Override
	public void fire()
	{
		ApplicationServerFactory.createApplicationServers(serverNum, useComponentNum);
	}
}
